<?php


namespace app\plugin\controller\draw_logic;


use app\plugin\controller\draw_logic\model\PluginDrawLogic;
use think\Controller;

class Client extends Controller
{
    public function detail()
    {
        $key  = input('key','');
        if (!$key){
            return $this->error('数据未找到');
        }
        $data = (new PluginDrawLogic())->hidden(['id','up_time'])->where(['key'=>$key])->find()->toArray();
        $this->assign('data',$data);
        return $this->fetch();
    }
}